<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/catalog"%>
<%@ taglib prefix="probiz" tagdir="/WEB-INF/tags/probiz"%>
<form id="skuOptionValueForm">
	<table class="com_modi_table" cellSpacing=0 cellPadding=0 width="100%" border=0>
		<tr>
			<th>
				<input type="hidden" name="version" value="${skuOptionValue.version}" />
				<input type="hidden" name="skuOptionValueId" value="${skuOptionValue.skuOptionValueId}" />
				<StoreAdmin:label key="skuOptionValue.skuOptionValueName" />
			</th>
			<td style="width: 70%">
				<input type="text" name="skuOptionValueName" id="skuOptionValueName" value="${skuOptionValue.skuOptionValueName}" />
			</td>
		</tr>
		<tr>
			<th>
				<StoreAdmin:label key="skuOptionValue.skuOptionValueType" />
			</th>
			<td>
				<input type="hidden" name="skuOptionValueType" id="skuOptionValueType_temp"/>
				<input type="radio" onclick="fnSelectValueTypeHandler(this.value)" name="skuOptionValueType" value="1" <c:if test="${empty skuOptionValue.skuOptionValueType||skuOptionValue.skuOptionValueType==1}">checked="checked"</c:if>>
				&nbsp;
				<fmt:message key="skuOptionValue.skuOptionValueType_1" />
				<input type="radio" onclick="fnSelectValueTypeHandler(this.value)" name="skuOptionValueType" value="2"  <c:if test="${skuOptionValue.skuOptionValueType==2}">checked="checked"</c:if>>
				&nbsp;
				<fmt:message key="skuOptionValue.skuOptionValueType_2" />
				<input type="radio" onclick="fnSelectValueTypeHandler(this.value)" name="skuOptionValueType" value="3"  <c:if test="${skuOptionValue.skuOptionValueType==3}">checked="checked"</c:if>>
				&nbsp;
				<fmt:message key="skuOptionValue.skuOptionValueType_3" />
			</td>
		</tr>
		<tr>
			<th>
				<StoreAdmin:label key="skuOptionValue.skuOptionValue" />
			</th>
			<td>
				<input type="text" name="skuOptionValue" id="skuOptionValue" value="${skuOptionValue.skuOptionValue}" />
			</td>
		</tr>
		<tr id="skuOptionValue_color" <c:if test="${skuOptionValue.skuOptionValueType!=2}">style="display:none"</c:if>>
			<th align="left">
				&nbsp;
			</th>
			<td align="left">
				<span id="colorpanel"></span>
			</td>
		</tr>
		<tr id="skuOptionValue_image" <c:if test="${skuOptionValue.skuOptionValueType!=3}">style="display:none"</c:if>>
			<th align="left">
				&nbsp;
			</th>
			<td align="left">
				<div style="float: left;">
					<img id="skuOptionValue_img" src="${mediaPath}${skuOptionValue.skuOptionValueType==3?skuOptionValue.skuOptionValue:''}" onerror="$j(this).attr('originsrc',this.src);this.onerror='';this.src=__defaultImage" originsrc="" width="40" height="40">
				</div>
				<div style="float: left; margin: 20px;">
					<input type="hidden" id="skuOptionValue_img_input">
				<br/>
				(<fmt:message key="skuOptionValue.skuOptionValueType.iamge.desc" />)
				</div>
			</td>
		</tr>
		<tr>
			<th>
				<StoreAdmin:label key="skuOptionValue.sortOrder" />
			</th>
			<td>
				<input type="text" name="sortOrder" id="sortOrder" value="${skuOptionValue.sortOrder}" />
			</td>
		</tr>
		<tr>
			<th>
				<StoreAdmin:label key="skuOptionValue.status" />
			</th>
			<td>
				<select id="status" name="status">
					<option value="1" <c:if test="${skuOptionValue.status==1}">selected="selected"</c:if>>
						<fmt:message key="status.active" />
					</option>
					<option value="2" <c:if test="${skuOptionValue.status==2}">selected="selected"</c:if>>
						<fmt:message key="status.inactive" />
					</option>
				</select>
			</td>
		</tr>
	</table>
</form>
<v:javascript formName="skuOptionValue" staticJavascript="false" />
<probiz:plugin_upload fileInputId="skuOptionValue_img_input" uploadFileTypes="jpg" uploadCategory="skuOptionValue" onComplete="fnUploadSkuOptionValueImagehandler" />